/*
 * HttpFileBody.h
 *
 */

#ifndef HTTPFILEBODY_H_
#define HTTPFILEBODY_H_

#include "HttpBody.h"
#include <fstream>

class HttpFileBody: public HttpBody {
	private:
		std::fstream file;
		size_t size;
	public:
		HttpFileBody(const std::string& filename);
		virtual ~HttpFileBody();

		HttpHeader* getContentLength() const;
		size_t getSize() const;
		std::istream& getStream();
};

#endif /* HTTPFILEBODY_H_ */
